package rahmath.sharif.docrypt.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.UUID;

import rahmath.sharif.docrypt.util.DocryptUtil;

public class Data implements Serializable {
	private static final long serialVersionUID = 1L;
	private String name;
	private String textFileName;
	private String extractFolder;
	private HashMap<String, String> attachments;

	public Data() {
		this.textFileName = UUID.randomUUID().toString();
		this.attachments = new HashMap<String, String>();
		this.extractFolder = DocryptUtil.getDocryptDir(11).getAbsolutePath();
	}

	public Data(String name) {
		this();
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTextFileName() {
		return textFileName;
	}

	public void setTextFileName(String textFileName) {
		this.textFileName = textFileName;
	}

	public String getExtractFolder() {
		return extractFolder;
	}

	public void setExtractFolder(String extractFolder) {
		this.extractFolder = extractFolder;
	}

	public HashMap<String, String> getAttachments() {
		return attachments;
	}

	public void setAttachments(HashMap<String, String> attachments) {
		this.attachments = attachments;
	}

}
